﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
     <script type="text/javascript">
         function clicks() {
             alert('script click!');
         }

      window.onload=   function () {
             document.getElementById("bbt").onclick=clicks;
         }
        
    </script>
</head>
<body >
    <input id="bbt" type="button" name="name" value="clickMe"/>
    <div style="width:100px;height: 100px;background-color: blue" id="ddv" ></div>
    <a href="javascript:alert('the  url')">lian jie</a>
    
   
</body>
</html>
